import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import setupDirectives from "./directives"; // 引入指令注册函数
import "element-plus/dist/index.css"; // 确保这一行存在
import LoadingPlugin from "./plugins/loading";
import "./styles/reset.css";

let app = createApp(App);
app.use(router);
app.use(store);
setupDirectives(app); // 注册所有指令
app.use(LoadingPlugin); // 注册加载插件
app.mount("#app");
